home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 27.zip / BS1 part 27 / ImageMaster_d3.adf / piarc.lzh.parta / animwr3.rexx < prev    next >
OS/2 REXX Batch file  |  1993-03-23  |  1KB  |  53 lines

  1. /*
  2.    This phase gets the params from ram: files and calls the anim delta
  3.    append thing
  4.  */
  5.  
  6. parse arg thisframe totframes '"' framefile '"'
  7. call pragma('stack',20000);
  8.  
  9. /*
  10.  * open rexxsupport.library -- needed for some functions
  11.  */
  12. if ~show('L',"rexxsupport.library") then do
  13.   if addlib('rexxsupport.library',0,-30,0) then do
  14.       /* everything's ok */
  15.     end;
  16.   else do
  17.     say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
  18.     say 'Cannot operate animr.rexx without this library - sorry!';
  19.     exit 10;
  20.     end;
  21.   end;
  22.  
  23. prtnme = 'IP_Port'; /* assume Image Professional */
  24. if show('P','IP_Port') = 0 then do
  25.   if show('P','IM_Port') = 0 then do
  26.     say "Can't find image processor's ARexx port!!!"; /* not running? */
  27.     say "This script requires IP, IM or IM F/c to run!";
  28.     exit(20);
  29.     end;
  30.   else do
  31.     prtnme = 'IM_Port'; /* That's the thing about assumptions... */
  32.     end;                 /* We make em, user's break em.          */
  33.   end;
  34.  
  35. options;
  36. address;
  37.  
  38.   prevpath = 'ram:'; /* put user in ram to start with... */
  39.  
  40.   call open(fhandle,'ram:IP_ANIMWR.CFG','read');      /* open the file */
  41.    jiffies = readln(fhandle);
  42.    animfile = readln(fhandle);
  43.   call close(fhandle);                     /* close the file    */
  44.  
  45.   address command 'cmpi:ANIMWR '||jiffies||' '||animfile||' '||framefile;
  46.  
  47.   address command 'c:delete >nil: '||framefile;
  48.  
  49.   address(prtnme);
  50.   'finish';
  51.   exit 0;
  52.  
  53.